import { useTheme } from 'vuetify'
// TODO: 主题持久化
export default function useToggleTheme() {
    const theme = useTheme()
    return {
        isDark: computed(() => theme.global.name.value === 'dark'),
        toggleTheme: () => {
            theme.toggle()
        }
    }
}